﻿CREATE PROCEDURE [dbo].[sp_Update_Account]
	@AccountID VARCHAR(10), 
	@FirstName VARCHAR(50),
	@LastName VARCHAR(50),
	@Email VARCHAR(200),
	@AccountType INT,
	@Status INT,
	@IsRuleEnabled INT,
	@IsRepeatRuleEnabled INT
AS
	UPDATE [dbo].[Accounts]
	SET [FirstName] = @FirstName
		  ,[LastName] = @LastName
		  ,[Email] = @Email
		  ,[Status] = @Status
		  ,[IsRuleEnabled] = @IsRuleEnabled
		  ,[IsRepeatRuleEnabled] = @IsRepeatRuleEnabled
		WHERE [AccountID] = @AccountID AND [AccountType] = @AccountType
RETURN 0;